<!DOCTYPE html>



  


<html class="theme-next muse use-motion" lang="zh-Hans,zh-tw,en,default">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.3" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.3">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.3">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.3">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.3" color="#222">





  <meta name="keywords" content="性能优化," />





  <link rel="alternate" href="/atom.xml" title="进行中的Full Stack Engineer" type="application/atom+xml" />






<meta name="description" content="1.引入对于很多app，使用UITableView控件时都会对图形进行圆角处理，这样显得app美观不少，常用的圆角处理，通过layer.cornerRadius和layer.maskToBounds设置即可。">
<meta name="keywords" content="性能优化">
<meta property="og:type" content="article">
<meta property="og:title" content="iOS圆角性能优化">
<meta property="og:url" content="https://dearlingzou8789.github.io/2016/10/24/iOS圆角性能优化/index.html">
<meta property="og:site_name" content="进行中的Full Stack Engineer">
<meta property="og:description" content="1.引入对于很多app，使用UITableView控件时都会对图形进行圆角处理，这样显得app美观不少，常用的圆角处理，通过layer.cornerRadius和layer.maskToBounds设置即可。">
<meta property="og:image" content="http://note.youdao.com/yws/api/personal/file/WEBcc6390ad108262ed7502cb196d6b68e1?method=download&inline=true&shareKey=f55906e17d3f133bf081339f28a6d062">
<meta property="og:image" content="http://note.youdao.com/yws/api/personal/file/WEB4cccf5d592714a7a10ea851af4e97850?method=download&inline=true&shareKey=3af890b6cb7bcff4afcc42bbf1bf1fc9">
<meta property="og:image" content="http://note.youdao.com/yws/api/personal/file/WEB696aadecf17ff8fe50d0cc19533335b9?method=download&inline=true&shareKey=b684c3b6cc30469d714697de4132543e">
<meta property="og:image" content="http://note.youdao.com/yws/api/personal/file/WEB5b8158fdeded8947f5bf90aa6cd88be6?method=download&inline=true&shareKey=0e6ca556aacae494e2b027a16b2a439b">
<meta property="og:image" content="http://note.youdao.com/yws/api/personal/file/WEBa24624db58818aada13bb9ca94d9fc5a?method=download&inline=true&shareKey=b042eb901c55d2232be743c045d0757a">
<meta property="og:updated_time" content="2017-06-18T15:20:25.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="iOS圆角性能优化">
<meta name="twitter:description" content="1.引入对于很多app，使用UITableView控件时都会对图形进行圆角处理，这样显得app美观不少，常用的圆角处理，通过layer.cornerRadius和layer.maskToBounds设置即可。">
<meta name="twitter:image" content="http://note.youdao.com/yws/api/personal/file/WEBcc6390ad108262ed7502cb196d6b68e1?method=download&inline=true&shareKey=f55906e17d3f133bf081339f28a6d062">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Muse',
    version: '5.1.3',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://dearlingzou8789.github.io/2016/10/24/iOS圆角性能优化/"/>





  <title>iOS圆角性能优化 | 进行中的Full Stack Engineer</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">进行中的Full Stack Engineer</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">全栈工程师</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://dearlingzou8789.github.io/2016/10/24/iOS圆角性能优化/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="XiaoMing">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="进行中的Full Stack Engineer">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">iOS圆角性能优化</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2016-10-24T23:23:14+08:00">
                2016-10-24
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h3 id="1-引入"><a href="#1-引入" class="headerlink" title="1.引入"></a>1.引入</h3><p>对于很多app，使用UITableView控件时都会对图形进行圆角处理，这样显得app美观不少，常用的圆角处理，通过layer.cornerRadius和layer.maskToBounds设置即可。<br><a id="more"></a><br><figure class="highlight swift"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div></pre></td><td class="code"><pre><div class="line"><span class="comment">// macOs 10.12, XCode 8 , iOS 10.0</span></div><div class="line">    <span class="function"><span class="keyword">func</span> <span class="title">tableView</span><span class="params">(<span class="number">_</span> tableView: UITableView, cellForRowAt indexPath: IndexPath)</span></span> -&gt; <span class="type">UITableViewCell</span> &#123;</div><div class="line">        <span class="keyword">var</span> cell = tableView.dequeueReusableCell(withIdentifier: <span class="string">"tableViewCell"</span>);</div><div class="line">        <span class="keyword">if</span> cell == <span class="literal">nil</span> &#123;</div><div class="line">            cell = <span class="type">UITableViewCell</span>.<span class="keyword">init</span>(style: .<span class="keyword">default</span>, reuseIdentifier: <span class="string">"tableViewCell"</span>);</div><div class="line">            cell?.imageView?.layer.masksToBounds = <span class="literal">true</span>;</div><div class="line">            cell?.imageView?.layer.cornerRadius = <span class="type">RowHeight</span> / <span class="number">2</span>;</div><div class="line">            cell?.imageView?.backgroundColor = <span class="type">UIColor</span>.white;</div><div class="line">            cell?.backgroundColor = <span class="type">UIColor</span>.white;</div><div class="line">        &#125;</div><div class="line">        </div><div class="line">        <span class="keyword">let</span> cacheIndex = indexPath.row % <span class="number">20</span>;</div><div class="line">        <span class="keyword">let</span> nameString = <span class="string">"siberian<span class="subst">\(cacheIndex)</span>"</span>;</div><div class="line">        <span class="keyword">let</span> image = <span class="type">UIImage</span>.<span class="keyword">init</span>(named: nameString);</div><div class="line">        cell?.imageView?.image = image;</div><div class="line">        <span class="keyword">return</span> cell!;</div><div class="line">    &#125;</div></pre></td></tr></table></figure></p>
<p>有离屏渲染，当一页图片展示只有10张左右时，数量56FPS,看起来还是可以的，当一页设置有20张左右时，就只有45FPS了.</p>
<p>测试机为:iPhone 5s/iOS 8.3</p>
<p><img src="http://note.youdao.com/yws/api/personal/file/WEBcc6390ad108262ed7502cb196d6b68e1?method=download&amp;inline=true&amp;shareKey=f55906e17d3f133bf081339f28a6d062" alt="iPhone 5s/iOS 8.3优化前"></p>
<p>测试机:iPad Air 2/iOS 10.0<br><img src="http://note.youdao.com/yws/api/personal/file/WEB4cccf5d592714a7a10ea851af4e97850?method=download&amp;inline=true&amp;shareKey=3af890b6cb7bcff4afcc42bbf1bf1fc9" alt="iPad Air 2/iOS 10.0优化前"><br>38~40FPS</p>
<h3 id="2-优化"><a href="#2-优化" class="headerlink" title="2.优化"></a>2.优化</h3><h4 id="1-离屏渲染处理"><a href="#1-离屏渲染处理" class="headerlink" title="1.离屏渲染处理"></a>1.离屏渲染处理</h4><p>圆角是离屏渲染的一大杀手，所以必须处理好，采用Core Graphic在后台进行对图片进行clip处理，这样就能很好的处理离屏渲染的问题。<br><figure class="highlight swift"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div></pre></td><td class="code"><pre><div class="line"><span class="comment">//  绘制圆角图片，没有离屏渲染，但是有图层混合。</span></div><div class="line">            <span class="type">DispatchQueue</span>.global(qos: .background).async(execute: &#123;</div><div class="line">                <span class="keyword">let</span> rect = <span class="type">CGRect</span>.<span class="keyword">init</span>(x: <span class="number">0</span>, y: <span class="number">0</span>, width: <span class="type">RowHeight</span>, height: <span class="type">RowHeight</span>);</div><div class="line">                <span class="type">UIGraphicsBeginImageContextWithOptions</span>(rect.size, <span class="literal">false</span>, <span class="type">UIScreen</span>.main.scale);</div><div class="line">                <span class="keyword">let</span> path = <span class="type">UIBezierPath</span>.<span class="keyword">init</span>(roundedRect: rect, cornerRadius: rect.height / <span class="number">2.0</span>);</div><div class="line">                path.addClip();</div><div class="line">                image?.draw(<span class="keyword">in</span>: rect);</div><div class="line">                <span class="keyword">let</span> lastImage = <span class="type">UIGraphicsGetImageFromCurrentImageContext</span>();</div><div class="line">                <span class="type">UIGraphicsEndImageContext</span>();</div><div class="line">                <span class="keyword">self</span>.cache.setObject(<span class="number">_</span> :lastImage!, forKey: <span class="type">String</span>(cacheIndex) <span class="keyword">as</span> <span class="type">AnyObject</span>, cost:<span class="type">Int</span>((lastImage?.size.width)!) * <span class="type">Int</span>((lastImage?.size.height)!) * <span class="type">Int</span>(<span class="type">UIScreen</span>.main.scale));</div><div class="line">                <span class="type">DispatchQueue</span>.main.async(execute: &#123;</div><div class="line">                    cell.imageView?.image = lastImage;</div><div class="line">                &#125;);</div><div class="line">            &#125;);</div></pre></td></tr></table></figure></p>
<h4 id="2-缓存处理好的图片"><a href="#2-缓存处理好的图片" class="headerlink" title="2.缓存处理好的图片"></a>2.缓存处理好的图片</h4><p>以上图片是经过处理后得到的，可以将其缓存，等到需要使用时，可以直接从本地缓存拉取。<br><figure class="highlight swift"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line"><span class="keyword">let</span> cacheImage = cache.object(forKey: <span class="type">String</span>(cacheIndex) <span class="keyword">as</span> <span class="type">AnyObject</span>);</div><div class="line">        <span class="keyword">if</span> <span class="keyword">let</span> lastCacheImage = cacheImage &#123;</div><div class="line">            cell.imageView?.image = lastCacheImage <span class="keyword">as</span>? <span class="type">UIImage</span>;</div><div class="line">        &#125;</div></pre></td></tr></table></figure></p>
<h4 id="3-优化图片获取的顺序"><a href="#3-优化图片获取的顺序" class="headerlink" title="3.优化图片获取的顺序"></a>3.优化图片获取的顺序</h4><p>当用户滑动界面时，调用顺序为:</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div></pre></td><td class="code"><pre><div class="line">graph LR</div><div class="line">scrollViewWillBeginDragging--&gt;scrollViewDidScroll</div><div class="line">scrollViewDidScroll--&gt;scrollViewWillEndDragging</div><div class="line">scrollViewWillEndDragging--&gt;scrollViewDidEndDragging</div><div class="line">scrollViewDidEndDragging--&gt;scrollViewWillBeginDecelerating</div><div class="line">scrollViewWillBeginDecelerating--&gt;scrollViewDidScroll</div><div class="line">scrollViewDidScroll--&gt;scrollViewDidEndDecelerating</div></pre></td></tr></table></figure>
<p>我们可以在滑动时，可以直接设置cell，但不去绘图，只在停止时调用<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div></pre></td><td class="code"><pre><div class="line">``` Swift</div><div class="line">    // 当滑动结束时调用</div><div class="line">    func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) &#123;</div><div class="line">        refreshTableView();</div><div class="line">        print(#function);</div><div class="line">    &#125;</div><div class="line">    </div><div class="line">    // 当拖拽停止时调用</div><div class="line">    func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool) &#123;</div><div class="line">        refreshTableView();</div><div class="line">        print(#function);</div><div class="line">    &#125;</div><div class="line">    </div><div class="line">    func refreshTableView() &#123;</div><div class="line">        let arr:[IndexPath]? = self.tbView.indexPathsForVisibleRows;</div><div class="line">        if let visibleIndexArr = arr &#123;</div><div class="line">            visibleIndexArr.forEach(&#123; (indexPath) in</div><div class="line">                let cell = self.tbView.cellForRow(at: indexPath);</div><div class="line">                getImage(indexPath: indexPath, forCell: cell!);</div><div class="line">            &#125;);</div><div class="line">        &#125;</div><div class="line">    &#125;</div></pre></td></tr></table></figure></p>
<h4 id="4-优化后的图片"><a href="#4-优化后的图片" class="headerlink" title="4.优化后的图片"></a>4.优化后的图片</h4><p><img src="http://note.youdao.com/yws/api/personal/file/WEB696aadecf17ff8fe50d0cc19533335b9?method=download&amp;inline=true&amp;shareKey=b684c3b6cc30469d714697de4132543e" alt="iPad air 2/iOS 10.0优化后的离屏渲染"><br><img src="http://note.youdao.com/yws/api/personal/file/WEB5b8158fdeded8947f5bf90aa6cd88be6?method=download&amp;inline=true&amp;shareKey=0e6ca556aacae494e2b027a16b2a439b" alt="iPad air 2/iOS 10.0优化后的图层混合"><br><img src="http://note.youdao.com/yws/api/personal/file/WEBa24624db58818aada13bb9ca94d9fc5a?method=download&amp;inline=true&amp;shareKey=b042eb901c55d2232be743c045d0757a" alt="iPad air 2/iOS 10.0优化后的FPS"></p>
<h3 id="3-结语"><a href="#3-结语" class="headerlink" title="3.结语"></a>3.结语</h3><p>通过上面后台绘制圆角，缓存处理过的图片，选择适当时机进行图片加载，使得帧率保持在56~58FPS左右。</p>
<blockquote>
<p><a href="https://github.com/DearlingZou8789/SixClub/tree/master/TransitionDemo" target="_blank" rel="external">Demo地址</a></p>
</blockquote>

      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/性能优化/" rel="tag"># 性能优化</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2016/09/08/hello-world/" rel="next" title="Hello World">
                <i class="fa fa-chevron-left"></i> Hello World
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2017/06/03/近日思考/" rel="prev" title="近日思考">
                近日思考 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name">XiaoMing</p>
              <p class="site-description motion-element" itemprop="description">爱学习，多思考</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">7</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/tags/index.html">
                  <span class="site-state-item-count">14</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          
            <div class="feed-link motion-element">
              <a href="/atom.xml" rel="alternate">
                <i class="fa fa-rss"></i>
                RSS
              </a>
            </div>
          

          <div class="links-of-author motion-element">
            
          </div>

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#1-引入"><span class="nav-number">1.</span> <span class="nav-text">1.引入</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#2-优化"><span class="nav-number">2.</span> <span class="nav-text">2.优化</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#1-离屏渲染处理"><span class="nav-number">2.1.</span> <span class="nav-text">1.离屏渲染处理</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#2-缓存处理好的图片"><span class="nav-number">2.2.</span> <span class="nav-text">2.缓存处理好的图片</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#3-优化图片获取的顺序"><span class="nav-number">2.3.</span> <span class="nav-text">3.优化图片获取的顺序</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#4-优化后的图片"><span class="nav-number">2.4.</span> <span class="nav-text">4.优化后的图片</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#3-结语"><span class="nav-number">3.</span> <span class="nav-text">3.结语</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2017</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">XiaoMing</span>

  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Muse</a> v5.1.3</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.3"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.3"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.3"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.3"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.3"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

</body>
</html>
